<template>
	<div class="header">
		<div class="logo">后台模板</div>
		<div class="userInfor">
			<div class="headerIcon">
			</div>
			<div class="username">
				<el-dropdown trigger="click">
					<span class="el-dropdown-link">
						{{username}} <i class="el-icon-arrow-down el-icon--right"></i>
					</span>
					<el-dropdown-menu slot="dropdown">
					  <el-dropdown-item>黄金糕</el-dropdown-item>
					  <el-dropdown-item>狮子头</el-dropdown-item>
					  <el-dropdown-item divided>退出登录</el-dropdown-item>
					</el-dropdown-menu>
					
				</el-dropdown>
			</div>
		</div>
	</div>
</template>
<script>
	export default{
		data(){
			return{
				username:'admin'
			}
		},
		methods:{
			handleClick(e){

			}
		}

	}
</script>
<style lang="scss" scoped>
	.header{
		position: fixed;
		top: 0;
		left: 0;
		z-index: 9999;
		display: flex;
		width: 100%;
		height: 70px;
		justify-content: space-between;
		align-items: center;
		background: #fff;
		color: #333;
		padding: 0 20px;
		box-sizing: border-box;
		.logo{
			
		}
		.userInfor{
			line-height: 70px;
			display: flex;
			justify-content: flex-start;
			align-items: center;
			.headerIcon{
				width: 50px;
				height: 50px;
				border: 1px solid #ccc;
				margin-right: 20px;
			}

		}
	}
</style>